package Day1;

public class SonClass extends FatherClass{
    private static int countSon;
    static {
        System.out.print("子类可以访问父类的静态属性count："+ count);
        System.out.print("子类的静态属性countSon初始化："+ countSon);
    }
    public SonClass(){
        System.out.print("执行子类的无参构造方法");
    }
    public SonClass(String name) {
        System.out.print("执行子类的构造方法SonClass(String name): "+name);
    }
    public static void sonFn(){
        System.out.print("this is son");
    }
    public static void main(String[] args) {
        new SonClass("aaa");
        new SonClass();    
    }
}